<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>绩效考核系统</title>
<link href="styles/core.css" rel="stylesheet" type="text/css">
<link href="styles/Master.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="scripts/common.js"></script>
<script type="text/javascript" src="scripts/message.js"></script>

<script type="text/javascript" src="scripts/jobeva/job_item.js"></script>

<style>

</style>

<script>

</script>

</head>

<body>
<s:form name="jobItemForm" id="jobItemForm" action="jobItem-addJobItem" namespace="/jobeva" method="post">

	<h2 style="text-align: left">岗位考核项目</h2>
	<hr width="100%" align="left" size="1" color="#E1EEF8">

	<s:hidden name="itemId"></s:hidden>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabHeader">
    	<tr>
			<td class="tdBg_right" width="10%" height="20px">岗位：</td>
			<td align="left">
				<s:property value="jobItemEntity.jobItem.jobName"/>
			</td>
		</tr>
		<tr>
			<td class="tdBg_right" width="10%" height="20px">考核项目名称：</td>
			<td align="left">
				<s:property value="jobItemEntity.jobItem.itemName"/>
			</td>
		</tr>
	</table>
	<br/>

	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabHeader" id="rule">
		<thead>
			<tr align="center" class="tdBg">
				<td style="text-align: center" nowrap="nowrap" width="20%">规则名称</td>
				<td style="text-align: center" nowrap="nowrap" width="30%">工作人员</td>
				<td style="text-align: center" nowrap="nowrap" width="10%">加扣分</td>
				<td style="text-align: center" nowrap="nowrap" width="10%">计分方式</td>
				<td style="text-align: center" nowrap="nowrap" width="30%">备注</td>
			</tr>
		</thead>
		<tbody>

			<s:iterator value="jobItemEntity.jobRuleList" id="jobRule" status="stat">
				<tr id='row_<s:property value='#stat.index' />'>
					<td>
						<s:property value="#jobRule.ruleName"/>
					</td>
					<td>
						<s:property value="#jobRule.workerName"/>
					</td>
					<td>
						<s:property value="#jobRule.score"/>
						<s:if test="#jobRule.scoringWay == 2">
							<s:label value="%"></s:label>
						</s:if>
					</td>
					<td>
						<s:if test="#jobRule.scoringWay == 1">
							数值
						</s:if>
						<s:elseif test="#jobRule.scoringWay == 2">
							百分比
						</s:elseif>
					</td>
					<td>
						<s:property value="#jobRule.remark"/>
					</td>
				</tr>
			</s:iterator>

		</tbody>
	</table>

	<center>
		<div style="padding: 4px 0pt;">
			<input type="button" value="修改" class="btn_mouseout" onclick="modify('<s:property value="jobItemEntity.jobItem.itemId"/>');"
				onmouseover="this.className='btn_mouseover'" onmouseout="this.className='btn_mouseout'"
				onmousedown="this.className='btn_mousedown'" onmouseup="this.className='btn_mouseup'">
			<input type="button" value="返回" class="btn_mouseout" onclick="back();"
				onmouseover="this.className='btn_mouseover'" onmouseout="this.className='btn_mouseout'"
				onmousedown="this.className='btn_mousedown'" onmouseup="this.className='btn_mouseup'">
		</div>
	</center>
</s:form>

<div id="waiting" style="display: none;">
	<div id="background" class="background"></div>
	<div id="progressBar" class="progressBar">数据加载中，请稍等...</div>
</div>
</body>
</html>